package com.guofen.dao;

import com.guofen.pojo.SjqSolidliquidProduceInspectionEquipment;
import com.guofen.pojo.SjqSolidliquidProduceMaintenanceDay;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SjqSolidliquidProduceMaintenanceDayMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqSolidliquidProduceMaintenanceDay record);

    int insertSelective(SjqSolidliquidProduceMaintenanceDay record);

    SjqSolidliquidProduceMaintenanceDay selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SjqSolidliquidProduceMaintenanceDay record);

    int updateByPrimaryKey(SjqSolidliquidProduceMaintenanceDay record);

    SjqSolidliquidProduceMaintenanceDay getlatest(Map map);

    List<SjqSolidliquidProduceMaintenanceDay> getlastByName(String equipmentName);

    List<SjqSolidliquidProduceMaintenanceDay> getDailyRecords();

    List<SjqSolidliquidProduceMaintenanceDay> selectAll();

    List<SjqSolidliquidProduceMaintenanceDay> selectByDate(@Param("startDate") String startDate,
                                                                @Param("endDate") String endDate);
}